HW resources for the device driver [closed]
Posted
by
VladimirLenin
on Programmers
See other posts from Programmers
or by VladimirLenin
Published on 2012-11-14T16:27:33Z
Indexed on
2012/11/14
17:29 UTC
Read the original article
Hit count: 228
Need to provide memory and IRQ resources to the Linux kernel in order to bring up the CAN controller. Have no idea how to get them.
Below is the structure I need to fill in. This structure I have taken for example, this is for the Run-Time Clock, but I need for CAN controller. Both are on the same board, and there are constants for RT Clock (and all other devices), but not for my CAN chip. When looking at the subject chip driver's code (sp_probe() function), I see it needs the same type resources.
struct resource tegra_rtc_resources[] = {
[0] = {
.start = ???,
.end = ???,
.flags = IORESOURCE_MEM,
},
[1] = {
.start = ???,
.end = ???,
.flags = IORESOURCE_IRQ,
},
};
© Programmers or respective owner